]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
css: Tidy up the card style
authorSam Hewitt <sam@snwh.org>
Mon, 17 Oct 2022 16:13:46 +0000 (13:43 -0230)
committerMarge Bot <marge-bot@gnome.org>
Tue, 18 Oct 2022 17:14:44 +0000 (17:14 +0000)
- remove the drop shadow
- clean up mixin references

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2513>

data/theme/gnome-shell-sass/_colors.scss
data/theme/gnome-shell-sass/_drawing.scss
data/theme/gnome-shell-sass/_high-contrast-colors.scss
data/theme/gnome-shell-sass/widgets/_calendar.scss

index c42a95543b8349d530dc390f31c69043a54f19fe..b83b1edf1df0ee7a771d2de3d5d2b01bf7874604 100644 (file)
@@ -40,6 +40,7 @@ $button_mix_factor: 5%;
 
 // cards
 $card_bg_color: if($variant == 'light', darken($bg_color, 5%), lighten($bg_color, 2%));
+$card_outer_borders_color: transparentize($fg_color, 0.98);
 
 // notifications
 $bubble_buttons_color: if($variant == 'light', darken($bg_color, 12%), lighten($bg_color, 10%));
index 8d9a33071b9bab43ed9e77a051bf41af19706e5f..0e51f935b34084e640d527e8bce0a78eb687eaf7 100644 (file)
 @mixin card($flat: false) {
   border-radius: $base_border_radius;
   margin: $base_margin;
-  box-shadow: 0 1px 1px 0 $shadow_color;
+  box-shadow: inset 0 0 0 1px $card_outer_borders_color;
 
   @if $flat {
     @include button(undecorated);
index 0d48644a1e6263a44d88af6593f308b6b9ab1ef6..15fdec3ec4f9a80344af2a39c5d7f6f25a277cbf 100644 (file)
@@ -38,6 +38,7 @@ $button_mix_factor: 10%;
 
 // cards
 $card_bg_color: if($variant == 'light', darken($bg_color, 12%), lighten($bg_color, 12%));
+$card_outer_borders_color: $card_bg_color;
 
 // notifications
 $bubble_buttons_color: if($variant == 'light', darken($bg_color, 22%), lighten($bg_color, 31%));
index 336372cd6cfc9d0dc3b4aead3d7924f0bc44393c..fa7080b44ccbb23cceac17c585a6b11c3e0ca233 100644 (file)
@@ -15,7 +15,7 @@
 
 /* today button (the date) */
 .datemenu-today-button {
-  @include card($flat: true);
+  @include card(flat);
   padding: $base_padding * 1.5;
 
   // weekday label